<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script type="text/javascript" charset="utf-8">
        function test1(){
            alert("我是test1");
        }
        /**
         * 函数的直接量
         */
        var test2 = function () {
            alert("我是test2");
        }
        /**
         * function的构造函数
         */
        var test3 = new Function("a","b","return a+b;");
        alert(test3(10,20));

    </script>
</head>
<body>

</body>
</html>